package main

import (
	"kuaishou_verify/src/dealVerify"
	"kuaishou_verify/src/getMessage"
	"kuaishou_verify/src/runServer"
	"math/rand"
	"strconv"
	"time"
)

func main() {
	var res_data []getMessage.DataDetail
	var gm_chan chan []getMessage.DataDetail = make(chan []getMessage.DataDetail)
	defer close(gm_chan)
	go getMessage.GetMessage(gm_chan)
	res_data = <-gm_chan
	main_data := dealVerify.DealVerify(res_data, "app")
	rand.Seed(time.Now().UnixNano())
	rand_port := rand.Intn(10000) + 10000
	runServer.RunServer(strconv.Itoa(rand_port), main_data)
}
